package com.imooc.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lihongyu
 * @CreateTime 2021-10-13 16:33
 * @Description 商品评价视图封装实体
 */
@ApiModel("商品评价视图封装实体")
public class ItemCommentVO implements Serializable {

    /**
     * 评价等级
     */
    @ApiModelProperty(name = "commentLevel",value = "评价等级",dataType = "Integer")
    private Integer commentLevel;

    /**
     * 评价内容
     */
    @ApiModelProperty(name = "content",value = "评价内容",dataType = "String")
    private String content;

    /**
     * 规格名称
     */
    @ApiModelProperty(name = "specName",value = "规格名称",dataType = "String")
    private String specName;

    /**
     * 评价时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createdTime",value = "评价时间",dataType = "Date")
    private Date createdTime;

    /**
     * 用户头像地址
     */
    @ApiModelProperty(name = "userFace",value = "用户头像地址",dataType = "String")
    private String userFace;

    /**
     * 用户昵称
     */
    @ApiModelProperty(name = "nickname",value = "用户昵称",dataType = "String")
    private String nickname;

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUserFace() {
        return userFace;
    }

    public void setUserFace(String userFace) {
        this.userFace = userFace;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "ItemCommentVO{" +
                "commentLevel=" + commentLevel +
                ", content='" + content + '\'' +
                ", specName='" + specName + '\'' +
                ", createdTime=" + createdTime +
                ", userFace='" + userFace + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
